package com.gary.controller;

import com.gary.service.AsynService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author pengrui
 * @date 2020/12/2 - 11:42
 */
@RestController
public class AsynController {

    @Autowired
    private AsynService asynService;

    @GetMapping("/hello")
    public String hello() {
        asynService.hello();
        return "success";
    }
}
